package com.test;

import java.math.BigDecimal;

/**
 * Created by ZZF on 2017/8/24.
 */
public class test4 {

    public static void main(String[] args) {

        BigDecimal bg = new BigDecimal(5.23);

        System.out.println(bg.toString().substring(0,3));


    }

}
